import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '../views/Index.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: IndexView,
    redirect:'/product',
    children:[
      {path: '/download', component: () => import('../views/Download.vue')},
      {path: '/orders', component: () => import('../views/Orders.vue')},
      {path: '/product', component: () => import('../views/Product.vue')},
    ]
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
